﻿<?php 
require_once("admin-header.php");
require_once("../maincore.php");
if (!defined("THNOJ")) die("Outside the site!");

if(isset($_POST['do'])){
	$fp=fopen("msg.txt","w");
	fputs($fp, stripslashes($_POST['msg']));
	fclose($fp);
	echo "Update At ".date('Y-m-d h:i:s');
}


$msg=file_get_contents("msg.txt");

?>
	<h1>Cài đặt tin nhắn hệ thống</h1>
	<form action='setmsg.php' method='post'>
		<textarea name='msg' rows='10' cols='90'><?php echo $msg?></textarea><br>
		<input type='hidden' name='do' value='do'>
		<br>
		<input type='submit' value='Lưu ' >
	</form>
	
<?php require_once('../oj-footer.php');
?>
